﻿using MVCTest.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCTest.Controllers
{
    public class PeopleController : Controller
    {
        // GET: People
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult About()
        {
            var school = new SchoolEntities();
            var result = school.People.ToList();
            ViewBag.Person = result;
            return View();
        }

        
    }
}